package com.cloud.drore.eboss.supplier.service;

import com.cloud.drore.eboos.common.base.PagePo;
import com.cloud.drore.eboos.common.base.ResultMessage;
import com.cloud.drore.eboos.common.entity.dealer.*;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 浙江卓锐科技股份有限公司 版权所有  Copyright 2018<br>
 *
 * @Description: <br>
 * @Project: eboos <br>
 * @CreateDate: Created in 2018/2/2 10:59 <br>
 * @Author: <a href="575842778@qq.com">郑永涛</a>
 */
@FeignClient("eboss-dealer")
public interface ICombProductFeign {

    //组合产品订单查询
    @PostMapping(value = "travelCombinationProductOrder/supplierQueryCombProduct")
    public ResultMessage<List<SupplierCombProductOrderVo>> supplierQueryCombProduct(@RequestBody PagePo<OrderQueryPo> pagePo);

    //运营商组合产品订单查询
    @PostMapping(value = "travelCombinationProductOrder/operationQueryCombProduct")
    public ResultMessage<List<OperationCombProductOrderVo>> operationQueryCombProduct(@RequestBody PagePo<OrderQueryPo> pagePo);


    //通过id获取退订订单详细信息
    @GetMapping(value = "travelCombinationProductOrder/otherGetCombProductOrderDetail/{id}")
    public ResultMessage<OrderDetailVo> getCombProductOrderDetail(@PathVariable("id") Long id);

    @GetMapping(value = "travelCombinationProductOrder/operationInit")
    public ResultMessage<OrderInitVo> operationInit();

    @GetMapping(value = "travelCombinationProductOrder/supplierInit")
    public ResultMessage<OrderInitVo> supplierInit();

}